package com.gujiangbo.singlethreadexec;

public class EatTest {

    public static void main(String[] args) {
        Tableware fork = new Tableware("fork");
        Tableware knife = new Tableware("knife");
        TablewarePair a = new TablewarePair(fork, knife);
        TablewarePair b = new TablewarePair(knife, fork);
        new EatNoodleThread("A", a).start();
        new EatNoodleThread("B", b).start();
    }
}
